package com.jindy.module.machineCostView.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.machineCostView.mapper.MachineCostViewMapper;
import com.jindy.module.machineCostView.domain.MachineCostView;
import com.jindy.module.machineCostView.service.IMachineCostViewService;

/**
 * VIEWService业务层处理
 * 
 * @author jindy
 * @date 2023-06-05
 */
@Service
public class MachineCostViewServiceImpl implements IMachineCostViewService 
{
    @Autowired
    private MachineCostViewMapper machineCostViewMapper;

    /**
     * 查询VIEW
     * 
     * @param number VIEW主键
     * @return VIEW
     */
    @Override
    public MachineCostView selectMachineCostViewByNumber(String number)
    {
        return machineCostViewMapper.selectMachineCostViewByNumber(number);
    }

    /**
     * 查询VIEW列表
     * 
     * @param machineCostView VIEW
     * @return VIEW
     */
    @Override
    public List<MachineCostView> selectMachineCostViewList(MachineCostView machineCostView)
    {
        return machineCostViewMapper.selectMachineCostViewList(machineCostView);
    }

    /**
     * 新增VIEW
     * 
     * @param machineCostView VIEW
     * @return 结果
     */
    @Override
    public int insertMachineCostView(MachineCostView machineCostView)
    {
        return machineCostViewMapper.insertMachineCostView(machineCostView);
    }

    /**
     * 修改VIEW
     * 
     * @param machineCostView VIEW
     * @return 结果
     */
    @Override
    public int updateMachineCostView(MachineCostView machineCostView)
    {
        return machineCostViewMapper.updateMachineCostView(machineCostView);
    }

    /**
     * 批量删除VIEW
     * 
     * @param numbers 需要删除的VIEW主键
     * @return 结果
     */
    @Override
    public int deleteMachineCostViewByNumbers(String[] numbers)
    {
        return machineCostViewMapper.deleteMachineCostViewByNumbers(numbers);
    }

    /**
     * 删除VIEW信息
     * 
     * @param number VIEW主键
     * @return 结果
     */
    @Override
    public int deleteMachineCostViewByNumber(String number)
    {
        return machineCostViewMapper.deleteMachineCostViewByNumber(number);
    }
}
